package com.smart.community.region.vo;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 业主房户关联VO
 * 
 * @author Wu.Liang
 * @since 2025-08-20
 * @version 1.0.0
 */
@Data
@Schema(description = "业主房户关联VO")
public class OwnerHouseholdVO {
    
    @Schema(description = "关联ID")
    private Long id;
    
    @Schema(description = "业主ID")
    private Long ownerId;
    
    @Schema(description = "业主姓名")
    private String ownerName;
    
    @Schema(description = "业主身份证号")
    private String ownerIdCard;
    
    @Schema(description = "业主联系电话")
    private String ownerPhone;
    
    @Schema(description = "房户ID")
    private Long householdId;
    
    @Schema(description = "小区名称")
    private String communityName;
    
    @Schema(description = "楼栋名称")
    private String buildingName;
    
    @Schema(description = "单元名称")
    private String unitName;
    
    @Schema(description = "房间号")
    private String roomNumber;
    
    @Schema(description = "产权类型：1-完全产权，2-共有产权，3-部分产权")
    private Integer ownershipType;
    
    @Schema(description = "产权类型描述")
    private String ownershipTypeDesc;
    
    @Schema(description = "产权比例（%）")
    private BigDecimal ownershipRatio;
    
    @Schema(description = "产权开始日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate ownershipStartDate;
    
    @Schema(description = "产权结束日期（适用于部分产权）")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate ownershipEndDate;
    
    @Schema(description = "是否主业主：true-是，false-否")
    private Boolean isPrimaryOwner;
    
    @Schema(description = "房产证号")
    private String certificateNumber;
    
    @Schema(description = "房产证日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate certificateDate;
    
    @Schema(description = "抵押信息")
    private String mortgageInfo;
    
    @Schema(description = "备注信息")
    private String remark;
    
    @Schema(description = "状态：0-禁用，1-启用")
    private Integer status;
    
    @Schema(description = "状态描述")
    private String statusDesc;
    
    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    
    @Schema(description = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
}
